package com.zlm.utils;


import com.zlm.dto.EmployeeDTO;

/**
 * 获取我们单独线程的id
 */
public class BaseHolder {
    private static final ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void saveCurrentId(Long id) {
        tl.set(id);
    }

    public static Long getCurrentId() {
        return tl.get();
    }

    public static void removeCurrent() {
        tl.remove();
    }
}
